<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>

<script>
	$("#account").val(userModel.account);//将用户账号信息，填充到form表单中
	$(function() {
		validReg("modifyPwd");
	});
</script>

<div class="page-content">
	<!--content-->
	<div class="containerTop">
		<span>修改密码</span>
	</div>

	<div class="panel charger">
		<form id="modifyPwd" class="form-horizontal" onsubmit="return validateCallback(this, modifyPwd.modifyPwdFun);">

			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>登陆账户：</label>
				<div class="col-sm-10 ">
					<div class="pr">
						<input type="text" id="account" name="account" disabled="disabled"
							class="form-control" value=" ">
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>旧密码：</label>
				<div class="col-sm-10 ">
					<div class="pr">
						<input type="password" id="oldPwd" name="oldPwd" required 
                            data-bv-notempty-message="请输入原始密码"
							class="form-control" placeholder="请输入原始密码"
							onchange="modifyPwd.validate()">
					</div>
					<div id="oldPwdMsg" style="color: red"></div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>新密码：</label>
				<div class="col-sm-10 ">
					<div class="pr">
						<input type="password" id="userPwd" name="userPwd" required 
							data-bv-notempty-message="请输入新密码"
							class="form-control" placeholder="请输入新密码"
							onchange="modifyPwd.validate()">
					</div>
					<div id="userPwdMsg" style="color: red"></div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>确认新密码：</label>
				<div class="col-sm-10 ">
					<div class="pr">
						<input type="password" id="repeatPwd" name="repeatPwd" required 
						    data-bv-notempty-message="请重复输入新密码"
							onchange="modifyPwd.validate()" class="form-control"
							placeholder="请重复输入新密码">
					</div>
					<div id="repeatPwdMsg" style="color: red"></div>
				</div>
			</div>

			<div class="clearfix" style="color: red">
				<h4 id="msg"></h4>
			</div>
			<label class="col-sm-2 control-label"></label>
			<div class="opareBtm">
				<button class="a-btn1  text-center" type="submit" >确定</button>
			</div>
		</form>
	</div>
</div>